﻿using Domain.Entity.System_setting;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_setting
{
    public class Info_companyConfiger : IEntityTypeConfiguration<Info_company>
    {
        public void Configure(EntityTypeBuilder<Info_company> builder)
        {
            builder.ToTable(nameof(Info_company));
            builder.HasKey(e => e.Comp_id);
            builder.Property(e => e.Comp_id).HasColumnType("bigint");
            builder.Property(e => e.Comp_name).HasColumnType("varchar(64)");
            builder.Property(e => e.Comp_logo).HasColumnType("varchar(64)");
            builder.Property(e => e.Comp_code).HasColumnType("varchar(64)");
            builder.Property(e => e.Contact_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Contact_phone).HasColumnType("varchar(11)");
            builder.Property(e => e.Comp_address).HasColumnType("varchar(64)");
            builder.Property(e => e.Comp_Remark).HasColumnType("varchar(500)");
            builder.Property(e => e.Create_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Create_time).HasColumnType("DateTime");
            builder.Property(e => e.Update_by).HasColumnType("varchar(64)");
            builder.Property(e => e.Update_time).HasColumnType("DateTime");
            builder.Property(e => e.Is_del).HasColumnType("tinyint").HasComment("删除状态：0、未删除 1、已删除");
        }
    }
}
